home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG Library 8 / PC-SIG Library CD-ROM (8th Edition) (1990-04).iso / 1901_000 / disk1931 / readme < prev    next >
Encoding:
Text File  |  1989-04-27  |  15.9 KB  |  346 lines

  1.  
  2.  
  3.                            Micro Statistics Package
  4.  
  5.                                       MSP
  6.                                   Version 2.0
  7.  
  8.                                   Elmo Keller
  9.                                1414 Smith Court
  10.                            San Luis Obispo, CA. 93401
  11.  
  12.                                  Patrick Marsh
  13.                                10482 Orozco Road
  14.                               San Diego, CA 92124
  15.  
  16. 1.0 INTRODUCTION
  17.  
  18. è1.Introduction
  19.   The  Micro  Statistics  Package  is  a  statistics utility program written in
  20. Turbo Pascal for an IBM PC, XT, AT or compatible  computer  based  on  MSDOS.
  21.  
  22.   The salient feature of this package is its ease of use.  It allows  the  user
  23. to  perform a wide variety of statistical analyses on columns of data contained
  24. in a worksheet.  The user manipulates data in a typical  statistical  worksheet
  25. by  typing  in English commands indicating actions to be taken on the column or
  26. columns of data.    There  are  over 100  commands,  including  procedures  for
  27. regression,  analysis  of  variance,  correlation,  Chisquare analysis of count
  28. data, plotting, sorting, transforming  data,  stem and leaf displays, boxplots,
  29. nonparametric statistics, cross tabulation,  save  and  retrieval   of   files,
  30. letter  value  displays, condensed plots, pop up reverse Polish Calculator with
  31. combinations  and  permutations  and over  25  functions, pop  up  distribution
  32. calculator to compute Normal, t, F and  Chisquare  distribution  P  values  and
  33. help  commands.    Commands  are  also  provided  to edit data contained in the
  34. worksheet. This package is intended to be  used  by  students  and  researchers
  35. dealing  with  small  or  medium  size data analysis problems. The second major
  36. feature of MSP is its  environment of pop up windows.  There are 8 windows that
  37. can be activated by  function keys.   F2 activates the calendar and time of day
  38. window.   F3 turns  the  screen into a reverse Polish Calculator.  F4 activates
  39. the distribution calculator. F1, F7 and F8 are general purpose windows and can
  40. store   results for  later  comparison.     These windows are  activated by the
  41. function keys and deactivated by the same function keys.  F5  and  F6 are small
  42. windows used for holding the current path, or help information  for  each  cmd.
  43. In addition there are a series of file utility commands to make data operations
  44. easier, such as getdir,listfile, changedir, makedir, removedir and delete file.
  45.  
  46.  
  47.   MSP has a HELP feature.  From within the MSP program  the command help will
  48. invoke the list of available commands.  The command HELP COMMAND will invoke
  49. specific help for the command following HELP.
  50.  
  51.      MSP>help
  52.  
  53.      will generate the list of available MSP commands.
  54.  
  55.      MSP> help stem
  56.  
  57.      will generate help information for the stem command.
  58.  
  59. A command can be up to 8 characters long.  One needs to give the command with
  60. the minimum number of characters to uniquely identify the command. For
  61. example help  can be given by he, hel or help to activate the command.
  62.  
  63.  
  64.  2.0   GETTING STARTED
  65.  
  66.   The list below shows the names of the files that are needed on the disk to
  67. run MSP.
  68.  
  69.           MSP.COM       MSP.H04      MSP.H09
  70.           MSP.000       MSP.H05      MSP.H10
  71.           MSP.H01       MSP.H06      RPCALC.BIN
  72.           MSP.H02       MSP.H07
  73.           MSP.H03       MSP.H08
  74.  
  75.   MSP.COM is the main module and is the root overlay for the MSP package.   The
  76. overlay  modules are in MSP.000 which contain the routines called by main,
  77. and must be on the same disk as the main module. The files MSP.H01 - MSP.H10
  78. are help files containing the text used in the HELP command.  The file RPCALC.BIN
  79. èthe  same  disk  as  the main module. Your disk may also contain data files for
  80. is used to form the screen image of the Reverse Polish Calculator.
  81.  
  82.   Insert the disk in a drive and type MSP.  The program initializes the  data
  83. structures and then  prints a screen message.  The screen message stays in the
  84. main  window  until the main  window  is used for output.  You will see the MSP
  85. prompt in the command  window.  You can now enter the MSP commands.  Notice the
  86. header in the command  window  displays the   windows  that  can be invoked by
  87. the function keys.
  88.  
  89. Now you are ready to enter the MSP command in the command window.
  90.  
  91. 3.0  CHECKING OUT THE WINDOWS
  92.  
  93.   F1 is displayed on the main window which is active when you begin.  Press
  94. the  function  key  F2  and the calendar and clock become active in a small
  95. window.  Again toggle the function key F2 and the calendar window becomes
  96. inactive and back to the main window.  Next try the function key F3.   This
  97. invokes the calculator.  This is a Reverse Polish Calculator and operates
  98. with values on a stack.  More is said about this calculator in the manual,
  99. for now enter 24 on the keyboard and the enter key.  Then enter 6 and the
  100. + key, 30 will be displayed.  When the calculator is active the function keys
  101. take on the functions as displayed on the left side of the screen.  With 30
  102. in the display, press F1 and the square root of 30 will be displayed.  Note
  103. that the functions above the left display of the function keys are activated
  104. by shift and the appropriate function key.  The ESC key deactivates the
  105. calculator and you are now back to the background window.  Press F4 and the
  106. F4 Distribution Functions  Window is activated.   Choose the t distribution
  107. by selecting 2.  Enter a t value and degrees of freedom, say 2.3 and 15.
  108. The significiance levels will be displayed.  Next choose 5 and deactivate
  109. the Distributions Window.  F7-F10 are available for the user to use to
  110. create windows for their own use.
  111.  
  112. 4.0   MSP SUMMARY
  113.  
  114. è3. Overview 
  115.   The  Micro  Statistical Package, MSP, is an integrated system consisting of a
  116. command line interpreter and a set of statistical procedures together with many
  117. utility routines.  Together they are used to perform analyses and  housekeeping
  118. functions   on  real  data  stored  in  a worksheet.  MSP  contains  procedures
  119. to do the following functions: (Upper case is used here  to  indicate  the  key
  120. part of the command.  Command lines can be a mixture of upper or lower case)
  121.  
  122.    * The READ, SET, SAVE, and RETRieve commands are used to input and save
  123.      data.  Input data can be entered from the console or from an existing
  124.      data file created with an editor.  The PRINt command is used to print
  125.      data to the screen or to the printer or to a file.  The complete
  126.      worksheet can be  saved on a disk file and later retrieved.
  127.  
  128.    * The  ORDEr  and  SORT  commands  are provided to allow the sorting of
  129.      column data into increasing order, and/or carry  along  corresponding
  130.      columns.  RANK computes the ranks of data in a column.
  131.  
  132.    * AVERage,  STANdard  deviation, COUNt, MEDIan, MAXImum, MINImum, PLOT,
  133.      NSCOres, HISTogram, and DESCribe  are  some  of  the  commands  which
  134.      provide descriptive statistics for data in the worksheet columns.
  135.  
  136.    * There  are over 24 commands to provide transformations on data in the
  137.      worksheet.  A LET command allows columns  of  data  to  be  terms  or
  138.      factors in mathematical expressions.
  139.  
  140.    * Editing  commands  such as APPEnd, INSErt, PICK, SUBStitute, etc. can
  141.      be used to edit data contained in the worksheet.
  142.  
  143.    * A directory command, DIR, is used to obtain the directory listing  of
  144.      files on any disk.
  145.  
  146.    * Commands  are  provided  for  statistical  analysis  of  data.  These
  147.      commands include, ZTESt, TTESt, TWOSample,  POOLed  t  test,  ONEWay,
  148.      TWOWay,  REGRession,  CHISquare,  CORRelation, and the general linear
  149.      model methodology using repeated regression runs.
  150.  
  151.    * A window invironment is provided with pop up calculator, distribution
  152.      functions, calendar and clock.
  153.  
  154.    * A HELP command to describe usage of all commands.
  155.  
  156.   The software is written in Turbo Pascal marketed by Borland International.
  157.  
  158.   The Program modules consist of two main parts:
  159.  
  160.    1. Data  structures  and procedures necessary to supply the user with a
  161.       worksheet of 35 columns, containing up to a total of 2500  real values.
  162.  
  163.        ( See figure 1. below )
  164.  
  165.    2. A  collection  of commands which operate on the data stored in the
  166.       worksheet.  These commands are English and the verb is descriptive
  167.       of the operation performed on the column or columns.
  168.  
  169. è
  170.  
  171.                                        COLUMNS
  172.  
  173.                        C1    C2    C3    ...    C23    C24    C35    MCOLS
  174.                   --------------------------------------------------
  175.              ROW  |                                                |
  176.                   |                                                |
  177.               1   |                                                |
  178.                   |                                                |
  179.               2   |                                                |
  180.                   |                                                |
  181.               3   |                                                |
  182.                   |                                                |
  183.               .   |                                                |
  184.               .   |                                                |
  185.               .   |                                                |
  186.                   |                                                |
  187.             MROWS |                                                |
  188.                   --------------------------------------------------
  189.  
  190.  
  191.                 Figure 1.   The MSP Worksheet
  192.  
  193.  
  194.   EXAMPLE  1. is  a simple example of commands to MSP to demonstrate the use of
  195. commands on columns in the worksheet.  Output from MSP goes into the active
  196. window, or to the printer or to a file depending on the command OUTPUT which
  197. sets the destination for the output.   The default in to the screen in the
  198. currently active window.
  199.  
  200.  
  201. MSP> SET DATA IN C1             DATA GOES IN COLUMN WISE
  202. DATA>1 2 3 4 5 6 7 8 9 10       SPACE or COMMA DELIMITS DATA VALUES
  203. DATA>END                        END -- ENDS INPUT DATA
  204. MSP> AVERAGE DATA IN C1         AVERAGE COMMAND
  205. MSP> READ DATA INTO C2-C4       DATA GOES ROW WISE INTO C2 C3 C4
  206. DATA> 40 35 60
  207. DATA> 50 60 38
  208. DATA>END
  209. MSP> PRINT C2-C4
  210. MSP> HISTOGRAM DATA IN C1
  211. MSP> STOP
  212.  
  213.                    EXAMPLE 1.   MSP Sample Commands
  214.  
  215.   The MSP command line interpreter allows free formatted command lines for
  216. commands.  Extraneous characters are allowed in the command line to give  added
  217. documentation,  but  are  completely  ignored  by  the  program  as long as the
  218. necessary arguments appear in the correct order and are of  the  correct  type.
  219. Command  lines  can  be  up  to 128 characters.  The command line consists of a
  220. command word  (enough characters to uniquely identify the  command)   followed
  221. by an argument list.  The command line takes the following forms.
  222.  
  223. è                    command
  224.  
  225.                     command   arg1  arg2  ... argn
  226.  
  227.                     command   "arg1"
  228.  
  229.  
  230.  
  231. where arg is either a column, filename enclosed in quotes, or a real valued
  232. constant separated by either blanks,tabs, or commas.
  233.  
  234.  Only the first eight letters of a command are used to determine the uniqueness
  235. of the verb.  You may give as many characters of a command as you wish, so
  236. long as  it is uniquely identified from the available commands.  The backspace
  237. key allows you to back up and retype a command or argument. The key
  238. combination of CTRL and e pressed together will erase the command line and
  239. allow you to retype the command.  This is what one would do in response to a
  240. beep indicating an error in the command line.
  241.  
  242.   Output to the console can be routed to the printer by  using  the
  243. command,
  244.  
  245.          MSP> OUTPUT "prn"   or to a disk file by the following command,
  246.          MSP> OUTPUT "file".
  247.  
  248. Output will go back to the console by using the command,
  249.  
  250.          MSP> NOOUT
  251.  
  252. This will close the channel to the disk file or printer and redirect output
  253. to the currently active window on the console screen. Be sure that the
  254. printer is ready for operation before enabling printing.  Output results can
  255. be sent to a file for later output to the printer.  This is useful when the
  256. user is in an environment where the printer is shared.
  257.  
  258.  5.0 SUMMARY OF VALID ARGUMENTS
  259.  
  260.   Constant, column, or name arguments may appear in  the  argument  list  of  a
  261. command.    Constant  values  are  read  in as real, and if an integer value is
  262. expected the value is truncated.  A  column  argument  may  take  two  possible
  263. forms.   It may be the letter c followed by an integer in the range 1 to 35, or
  264. it may be a column name of the form 'cost' or "cost".  Arguments are  delimited
  265. by a comma, tab, or a blank.
  266.  
  267.                     average the data in c1 put it in c2
  268.                     set  "data.one" in c3
  269.  
  270.  
  271.    1. The letter c, or C, followed by an integer within the range 1 to 35.
  272.  
  273.    2. A  column  name consisting of up to 10 characters enclosed in either
  274.       single or double quotes.  A column can be given a name by using  the
  275.       NAME command.
  276.  
  277.    3. A  column  range  is  two column arguments separated by a dash.  For
  278.       example, the argument c1-c5 means column 1 through column 5.
  279.  
  280.   For commands requiring file access, the file name is specified  as
  281. "filename".  In the READ and SET commands the file name must be given in
  282. the command line as one of the arguments, as also in  SAVE  and  RETRieve.
  283. If the user is prompted for the file name, the file name is typed without
  284. enclosing quotes.
  285.  
  286.   The following notation  will  be  used  in  these notes  when  referring  to
  287. arguments and also in the online documentation.
  288.  
  289.     [ ] : denotes optional information.
  290.  
  291.     C   : denotes a column (e.g. c1).
  292.  
  293.     K   : denotes an integer or real constant (e.g. 23 or 34.43).
  294.  
  295.     C(K):  denotes a real constant equal to the value in the Kth row of
  296.              column C.
  297.  
  298.     E   : denotes either a constant or a column.  (e.g. 3.5 or c4)
  299.  
  300.     "name" : denotes a column name. This name can be up to 10  characters
  301.               in length.
  302.  
  303.     Ci-Cj  : denotes a column range. If a valid range, all columns with
  304.  
  305.           the specified range will be used (e.g. C3 - C10, "coeff" - C6).
  306.  
  307.     C ... C : denotes a general column list.    Each  column,  or  column
  308.      range, is specified in the list, separated by blanks or commas, using
  309.      any  of  the  above  mentioned  column  argument  forms (e.g.  C2, C4
  310.      "code", c1 - c4).
  311.  
  312.      "drive_char:filename.extension"  : The file name consists of up to 15
  313.                  characters which includes:
  314.  
  315.          drive_char: - The drive character must represent a  valid  drive
  316.           on  the system.  If not specified, the currently logged drive is
  317.           used.
  318.  
  319.          filename - The filename must be a valid  MSDOS file name.
  320.  
  321.          .extension - The file extension (type) must be a valid
  322.                       MSDOS file extension.
  323.  
  324. It is possible  to  create  text  files  containing standard MSP commands
  325. and  execute  them  from within MSP as a batch file.  The command file can
  326. be created using any editor follow the same command format as when entered at
  327. the MSP prompt. There are a few things to be careful of when using MSP
  328. command files:
  329.  
  330.    - Be sure that each line is terminated with a carriage return.
  331.  
  332.    - When  entering  data for the READ or SET commands, be sure to use the
  333.      END command to terminate the  data.  Also,  be  sure  that  the  line
  334.      containing the END command is terminated with a carriage return.
  335.  
  336.    - Be  sure data is entered for all prompts. Several commands prompt for
  337.      extra information and this information must be provided in a command file.
  338.  
  339. Assume the data below is in a file called  one.xxx :
  340.  
  341. è
  342.         READ C1 C4 C6
  343.         1.23 3.45 3.54      =========>  data in a file one.xxx
  344.         2.34 3.65 76.5
  345.         END
  346.         PRINT C1 C4 C6
  347.  
  348.  
  349. To execute the commands in the file you would give the following
  350. command in MSP.
  351.  
  352.      MSP> execute "one.xxx"